CREATE TABLE table1 (
	id INTEGER,
	name VARCHAR(50)
);
CREATE TABLE table2 (
	id INTEGER,
	name VARCHAR(50)
);
-- DEFINER `mysql_test`@`%`
CREATE OR REPLACE FUNCTION createFunction_a92a685008044eac9628e1d7ff309c43() RETURNS TRIGGER AS
$$
DECLARE
BEGIN
INSERT
INTO table2
VALUES (new.id, new.name);
RETURN NEW;
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER trigger1
BEFORE INSERT ON table1
FOR EACH ROW
EXECUTE PROCEDURE createFunction_a92a685008044eac9628e1d7ff309c43();